package com.zzxy.spring3.aspect;

import jdk.internal.org.objectweb.asm.commons.Method;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyAspectAop implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("before ..");
        Object obj = methodInvocation.proceed();
        System.out.println("after ..");
        return obj;
    }
}
